function dlgInfo = TLGetDlg(action)

% TLGetDlg gets default values for dlginfo structure
%
% SYNTAX dlgInfo = TLGetDlg('tlsim')
%   gets dialog information of TargetLink simulation blocks
%
%   INPUT ARGUMENTS
%   - / -
%
%   OUTPUT ARGUMENTS
%   dlgInfo     default dlginfo structure 
%
% SYNTAX dlgInfo = TLGetDlg('tlutil')
%   gets dialog information of TargetLink utility blocks
%
%   INPUT ARGUMENTS
%   - / -
%
%   OUTPUT ARGUMENTS
%   dlgInfo     default dlginfo structure 
%
% SYNTAX dlgInfo = TLGetDlg('rtos')
%   gets dialog information of RTOS blocks
%
%   INPUT ARGUMENTS
%   - / -
%
%   OUTPUT ARGUMENTS
%   dlgInfo     default dlginfo structure 
%
% SYNTAX dlgInfo = TLGetDlg('tltool')
%   gets dialog information of TargetLink tool dialogs
%
%   INPUT ARGUMENTS
%   - / -
%
%   OUTPUT ARGUMENTS
%   dlgInfo     default dlginfo structure 


% Author(s): D. Andoleit
% $RCSfile: TLGetDlg.m $
% $ProjectName: e:/ARC/Components/HostSW/ProdCodeGen/DialogHandler/Sources/MSrc/project.pj $
% $Revision: 1.8 $
% $Date: 2011/06/21 09:53:26MESZ $
%
% Copyright ?2011 dSPACE GmbH. All rights reserved.


% initialize return value
dlgInfo.bDDManager      = false;
dlgInfo.bPropManager    = false;
dlgInfo.bSLParamDlg     = false;
dlgInfo.bRefresh        = false;
dlgInfo.bEditCode       = false;
dlgInfo.bViewCode       = false;
dlgInfo.bPlotSignal     = false;
dlgInfo.bShowBlock      = false;
dlgInfo.bGoBack         = false;
dlgInfo.bPlotResults    = false;
dlgInfo.bDateLabel      = false;
dlgInfo.bShowBrowser    = false;
dlgInfo.bOnlyOk         = false;
dlgInfo.defaultPageNum  = 1;
dlgInfo.bDualEdit       = false;
dlgInfo.bSim            = false;

switch action
    
    case 'tlsim'
        dlgInfo.bDDManager      = true;
        dlgInfo.bPropManager    = true;
        dlgInfo.bSLParamDlg     = true;
        dlgInfo.bRefresh        = true;
        dlgInfo.bEditCode       = true;
        dlgInfo.bViewCode       = true;
        dlgInfo.bPlotSignal     = true;
        dlgInfo.bShowBlock      = true;
        dlgInfo.bDateLabel      = true;

    case 'tlutil'
        dlgInfo.bDDManager      = true;
        dlgInfo.bPropManager    = true;
        dlgInfo.bRefresh        = true;
        dlgInfo.bEditCode       = true;
        dlgInfo.bViewCode       = true;
        dlgInfo.bShowBlock      = true;
        dlgInfo.bDateLabel      = true;
        
    case 'rtos'
        dlgInfo.bDDManager      = true;
        dlgInfo.bPropManager    = true;
        dlgInfo.bRefresh        = true;
        dlgInfo.bShowBlock      = true;
        dlgInfo.bDateLabel      = true;

    case 'tltool'
        dlgInfo.bDDManager      = true;
        dlgInfo.bPropManager    = true;
        dlgInfo.bGoBack         = true;
        dlgInfo.bPlotResults    = true;

    otherwise
        error(['Invalid action: "' action '"']);

end
